package main

import (
	"flag"
	"fmt"
	"github.com/gin-gonic/gin"
	_ "github.com/go-sql-driver/mysql"
	"meituan/routes"
	"meituan/utils/config"
)

var (
	app *gin.Engine = gin.Default()
)

func main() {
	flag.Parse()
	loadConfig, _ := config.LoadConfig()
	routes.RegisterRouter(app)
	_ = app.Run(fmt.Sprintf("%s:%d", loadConfig.Gin.Host, loadConfig.Gin.Port))

}
